<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8"/>
    <meta content="width=device-width, initial-scale=1" name="viewport">
    <title>Login</title>
    <link href="/favicon.ico" rel="icon" type="image/ico"/>
    <script src="https://unpkg.com/@tailwindcss/browser@4"></script>
</head>
<body>
<div class="h-screen flex flex-col justify-center px-6 py-12 lg:px-8">
    <div class="sm:mx-auto sm:w-full sm:max-w-sm">
        <img alt="logo" class="mx-auto h-16 w-16" th:src="@{/assets/logo.svg}">
        <h2 class="mt-6 text-center text-xl/9 font-bold tracking-tight text-gray-900">Sign in to your account</h2>
    </div>

    <div class="mt-8 sm:mx-auto sm:w-full sm:max-w-xs">
        <div class="alert alert-danger" role="alert" th:if="${param.error}">
            Invalid username or password.
        </div>
        <form class="space-y-6" method="POST" th:action="@{/login}">
            <div>
                <label class="block text-sm/6 font-medium text-gray-900" for="username">Username</label>
                <div class="mt-2">
                    <input autocomplete="username" class="block w-full rounded-md bg-white px-3 py-1.5 text-base text-gray-900 outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 sm:text-sm/6" id="username" name="username" required
                           type="text">
                </div>
            </div>

            <div>
                <label class="block text-sm/6 font-medium text-gray-900" for="password">Password</label>
                <div class="mt-2">
                    <input autocomplete="current-password" class="block w-full rounded-md bg-white px-3 py-1.5 text-base text-gray-900 outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 sm:text-sm/6" id="password" name="password" required
                           type="password">
                </div>
            </div>
            <div class="flex items-center justify-between">
                <div class="inline-flex gap-3 shrink-0 items-center">
                    <input class="block w-4 h-4" id="remember-me" name="remember-me"
                           type="checkbox">
                    <label class="block text-sm/6 font-medium text-gray-900" for="remember-me">Remember me</label>
                </div>
                <div class="text-sm">
                    <a class="font-semibold text-lime-600 hover:text-lime-500" href="#">Forgot password?</a>
                </div>
            </div>
            <div>
                <button class="flex w-full justify-center rounded-md bg-lime-600 px-3 py-1.5 text-sm/6 font-semibold text-white shadow-xs hover:bg-lime-500 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-lime-600"
                        type="submit">
                    Sign in
                </button>
            </div>
        </form>

        <div>
            <div class="relative mt-8">
                <div aria-hidden="true" class="absolute flex items-center inset-0">
                    <div class="w-full border-gray-200 border-t"></div>
                </div>
                <div class="relative flex justify-center">
                    <span class="text-sm font-medium bg-white text-gray-900 px-6">Or continue with</span>
                </div>
            </div>
            <div class="grid grid-cols-2 gap-4 mt-6">
                <a class="flex items-center justify-center space-x-2 p-inline-3 p-2 rounded-md shadow-sm ring ring-gray-300 hover:bg-gray-50"
                   href="#">
                    <svg aria-hidden="true" class="h-5 w-5" viewBox="0 0 24 24">
                        <path d="M12.0003 4.75C13.7703 4.75 15.3553 5.36002 16.6053 6.54998L20.0303 3.125C17.9502 1.19 15.2353 0 12.0003 0C7.31028 0 3.25527 2.69 1.28027 6.60998L5.27028 9.70498C6.21525 6.86002 8.87028 4.75 12.0003 4.75Z"
                              fill="#EA4335"></path>
                        <path d="M23.49 12.275C23.49 11.49 23.415 10.73 23.3 10H12V14.51H18.47C18.18 15.99 17.34 17.25 16.08 18.1L19.945 21.1C22.2 19.01 23.49 15.92 23.49 12.275Z"
                              fill="#4285F4"></path>
                        <path d="M5.26498 14.2949C5.02498 13.5699 4.88501 12.7999 4.88501 11.9999C4.88501 11.1999 5.01998 10.4299 5.26498 9.7049L1.275 6.60986C0.46 8.22986 0 10.0599 0 11.9999C0 13.9399 0.46 15.7699 1.28 17.3899L5.26498 14.2949Z"
                              fill="#FBBC05"></path>
                        <path d="M12.0004 24.0001C15.2404 24.0001 17.9654 22.935 19.9454 21.095L16.0804 18.095C15.0054 18.82 13.6204 19.245 12.0004 19.245C8.8704 19.245 6.21537 17.135 5.2654 14.29L1.27539 17.385C3.25539 21.31 7.3104 24.0001 12.0004 24.0001Z"
                              fill="#34A853"></path>
                    </svg>
                    <span class="text-sm font-semibold">Google</span>
                </a>
                <a class="flex items-center justify-center space-x-2 p-inline-3 p-2 rounded-md shadow-sm ring ring-gray-300 hover:bg-gray-50"
                   href="#">
                    <svg aria-hidden="true" class="h-5 w-5" fill="currentColor" viewBox="0 0 20 20">
                        <path clip-rule="evenodd"
                              d="M10 0C4.477 0 0 4.484 0 10.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0110 4.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.203 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.942.359.31.678.921.678 1.856 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0020 10.017C20 4.484 15.522 0 10 0z" fill-rule="evenodd"></path>
                    </svg>
                    <span class="text-sm font-semibold">GitHub</span>
                </a>
            </div>
        </div>

        <p class="mt-10 text-center text-sm/6 text-gray-500">
            Not a account?
            <a class="font-semibold text-lime-600 hover:text-lime-500" href="#"> Register a new account</a>
        </p>
    </div>
</div>
</body>
</html>
